package cn.bdqn.demo.seckill;

import java.util.Random;

public class UniqueKey {
    public static synchronized int genUniqueKey(){
        Random random = new Random();
        Integer number = random.nextInt(9000) + 1000;
        return number;
    }
}
